# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'appinstall_helper' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!
  
  # Pods for appinstall_helper
  
  # Other Pods
  pod 'SwiftLint'
  pod 'SnapKit', '~> 4.0.0'
  pod 'Kingfisher',   :git => 'https://github.com/onevcat/Kingfisher.git', :branch => 'master'
  pod 'SwifterSwift'
  pod 'RxSwift',    '~> 4.0'
  pod 'RxCocoa',    '~> 4.0'
  pod 'HandyJSON', '~> 4.2.0-beta1'
  pod 'IQKeyboardManagerSwift', '~> 6.1.1'
  pod 'Moya', '~> 12.0.0-beta.1'
  pod 'Bugly'
  
  target 'appinstall_helperTests' do
    inherit! :search_paths
    # Pods for testing
  end
  
  post_install do |installer|
    installer.pods_project.targets.each do |target|
      if ['Kingfisher', 'HandyJSON', 'SwifterSwift'].include? target.name
        target.build_configurations.each do |config|
          config.build_settings['SWIFT_VERSION'] = '4.2'
        end
        else
        target.build_configurations.each do |config|
          config.build_settings['SWIFT_VERSION'] = '4.0'
        end
      end
    end
  end
  
end
